package com.rui.lost.service.impl;


import com.rui.lost.entity.Lost;
import com.rui.lost.mapper.LostMapper;
import com.rui.lost.service.LostService;
import com.rui.lost.vo.LostQuery;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LostServiceImpl implements LostService {

    @Resource
    private LostMapper lostMapper ;
    @Override
    public List<Lost> getLostList(LostQuery param) {
        return lostMapper.getLostList(param);
    }

    @Override
    public Long countLostList(LostQuery param) {
        return lostMapper.countLostList(param);
    }

    @Override
    public void addLost(Lost lost) {
        lostMapper.addLost(lost);
    }

    @Override
    public void deleteLostBylos(String los) {
        lostMapper.deleteLostBylos(los);
    }

    @Override
    public Lost getLostByids(Integer ids) {
        return lostMapper.getLostByids(ids);
    }

    @Override
    public void updateLost(Lost lost) {
        lostMapper.updateLost(lost);
    }


}
